package com.zhf.douyinvideo.fragment

import android.annotation.SuppressLint
import android.view.View
import android.widget.TextView
import com.zhf.douyinvideo.R
import com.zhf.douyinvideo.base.BaseFragment

/**
 * Fragment 2
 */
class CourseFragment() : BaseFragment() {
	
	lateinit var type: String
	
	override val contentLayoutId: Int
		get() = R.layout.fragment_course
	
	@SuppressLint("ValidFragment")
	constructor(type: String) : this() {
		this.type = type
	}
	
	override fun initWidget(root: View) {
		super.initWidget(root)
		var textView: TextView = root.findViewById(R.id.textView)
		
		textView.text = type
	}
	
}
